package com.ruoyi.ylyx.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 省市县管理对象 sys_dt_area
 * 
 * @author ruoyi
 * @date 2020-11-23
 */
public class SysDtArea extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String areaName;

    /** 区域代码 */
    @Excel(name = "区域代码")
    private String areaCode;

    /** 上级区域id */
    @Excel(name = "上级区域id")
    private String areaParentId;

    /** 区域等级 */
    @Excel(name = "区域等级")
    private String areaLevel;

    private List<SysDtArea> nextArea;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreaParentId(String areaParentId) 
    {
        this.areaParentId = areaParentId;
    }

    public String getAreaParentId() 
    {
        return areaParentId;
    }
    public void setAreaLevel(String areaLevel) 
    {
        this.areaLevel = areaLevel;
    }

    public String getAreaLevel() 
    {
        return areaLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaName", getAreaName())
            .append("areaCode", getAreaCode())
            .append("areaParentId", getAreaParentId())
            .append("areaLevel", getAreaLevel())
            .toString();
    }

    public List<SysDtArea> getNextArea() {
        return nextArea;
    }

    public void setNextArea(List<SysDtArea> nextArea) {
        this.nextArea = nextArea;
    }
}
